//请求处理
class Command{
  constructor() {
    this.resolve = null;
    this.reject = null; 
  }
  sleep(){
    return new Promise((resolve,reject)=>{
        this.resolve=resolve
        this.reject=reject
    })
  }
  callResolve(){
    this.resolve()
  }
  callReject(){
    console.log('reject了')
    this.reject()
  }
} 
module.exports={
  Command,
}
